﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
	xmlns:System="clr-namespace:System;assembly=mscorlib" 
	mc:Ignorable="d" 
	x:Class="TheGameClient.SecSysUsernamePasswordControl" d:DesignWidth="548" d:DesignHeight="338"
    >
	<Border VerticalAlignment="Center" BorderThickness="2" CornerRadius="10" Effect="{StaticResource DefaultShadowLarge}" Background="{StaticResource DefaultWindowColor}" BorderBrush="{StaticResource DefaultWindowBorder}" HorizontalAlignment="Center">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="Default_states" ei:ExtendedVisualStateManager.UseFluidLayout="True">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="0:0:0.4">
						<VisualTransition.GeneratedEasingFunction>
							<CubicEase EasingMode="EaseOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="Default"/>
				<VisualState x:Name="Accessed">
					<Storyboard>
						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border" d:IsOptimized="True"/>
						<DoubleAnimation Duration="0" To="10" Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)" Storyboard.TargetName="stackPanel" d:IsOptimized="True"/>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="border">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<System:Boolean>True</System:Boolean>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
						<DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="stackPanel" d:IsOptimized="True"/>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="AccountCreation">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="btnOK">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Visibility>Collapsed</Visibility>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="stackPanel1">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Visibility>Visible</Visibility>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<VisualStateManager.CustomVisualStateManager>
			<ei:ExtendedVisualStateManager/>
		</VisualStateManager.CustomVisualStateManager>
		<Grid>
			<StackPanel x:Name="stackPanel" Margin="12,12,8,8" Orientation="Horizontal" d:LayoutOverrides="Width, Height">
				<StackPanel.Effect>
					<BlurEffect Radius="0"/>
				</StackPanel.Effect>
				<StackPanel HorizontalAlignment="Left" VerticalAlignment="Center">
					<StackPanel Orientation="Horizontal" d:LayoutOverrides="Width" Margin="0,0,0,5">
						<TextBlock Text="Username:" TextWrapping="Wrap" VerticalAlignment="Center" Margin="0,0,5,0" Width="75" Foreground="White" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
						<TextBox TextWrapping="Wrap" Width="200" VerticalAlignment="Center" x:Name="txtUsername" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
					</StackPanel>
					<StackPanel Orientation="Horizontal" d:LayoutOverrides="Width" Margin="0,0,0,3">
						<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" Text="Password:" TextWrapping="Wrap" Width="75" Foreground="White" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
						<PasswordBox Width="200" x:Name="pwdPassword" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
					</StackPanel>
					<StackPanel x:Name="stackPanel1" Orientation="Horizontal" Visibility="Collapsed">
						<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" Text="Repeat:" TextWrapping="Wrap" Width="75" Foreground="White" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
						<PasswordBox Width="200" x:Name="pwdPassword1" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
					</StackPanel>
				</StackPanel>
				<Button x:Name="btnOK" Width="100" Content="Authenticate" Click="BtnOkClick" Height="100" Margin="20,0,0,0" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
			</StackPanel>
			<Border x:Name="border" CornerRadius="10" BorderBrush="{StaticResource DefaultWindowBorder}" Opacity="0" IsHitTestVisible="False">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#7F4092FF" Offset="0.492"/>
						<GradientStop Color="#3F003479" Offset="0"/>
						<GradientStop Color="#3F003479" Offset="1"/>
					</LinearGradientBrush>
				</Border.Background>
				<TextBlock TextWrapping="Wrap" Text="ACCESS GRANTED" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" FontSize="32" FontWeight="Bold" FontFamily="Consolas">
					<TextBlock.Effect>
						<DropShadowEffect Color="White" ShadowDepth="0" BlurRadius="10"/>
					</TextBlock.Effect>
				</TextBlock>
			</Border>
		</Grid>
	</Border>
</UserControl>
